import request from "@utils/request";
/**
 * 抢单新订单list
 * @returns {*}
 */
export function getGrabList(pageNo,searchCondition,smCreationId) {
  return request.get("/evolve/shoot/grabList", {pageNo,searchCondition,smCreationId}, { login: false });
}
//所有抢单和已抢单详情
export function getGrabListInfo(smId,pumUid,smCreationId) {
  return request.get("/evolve/shoot/giveDataById", {smId,pumUid,smCreationId}, { login: false });
}
//点击抢单
export function getRobOrder(smId,pumId) {
  return request.get("/evolve/po/robOrder", {smId,pumId}, { login: false });
}
//拍摄订单和已抢单list
export function getShootList(pageNo,pumId,poIsOver,searchCondition,poCreationId) {
  return request.get("/evolve/po/managerlist", {pageNo,pumId,poIsOver,searchCondition,poCreationId}, { login: false });
}
//拍摄订单详情
export function getShootListInfo(poId) {
  return request.get("/evolve/po/giveDataById", {poId}, { login: false });
}
//获取短信验证码
export function getSMSCode(mobile,sendType) {
  return request.get("/wechat/wx_unify/registerMobileCode", {mobile,sendType}, { login: false });
}
//获取微信sdk配置
export function getWechatConfig() {
  return request.get(
      "/wechat/wx_unify/share", { url: document.location.href }, { login: false }
  );
}
//微信授权信息
export function wechatAuth(code) {
  return request.get("/wechat/wx_unify/wx_token", { code }, { login: false }
  );
}

//扫描二维码后请求
export function orderInAccessAffirm(poId,poPumId,creationId,pumUid) {
  return request.get("/evolve/po/orderInAccessAffirm", { poId,poPumId,creationId,pumUid }, { login: false }
  );
}
